The IMSL_BINOMIALCOEF function evaluates the binomial coefficient.
Note: This routine requires an IDL Analyst license. For more information, contact your Exelis VIS sales or technical support representative.
The binomial function is defined to be:
with n ≥ m ≥ 0. Also, n must not be so large that the function overflows.
In this example:
is computed and printed.
n = 9
m = 5
ans = IMSL_BINOMIALCOEF(n, m)
PRINT, 'binomial coefficient =', ans
binomial coefficient = 126.000
Result = IMSL_BINOMIALCOEF(n, m [, /DOUBLE])
The binomial coefficient:
is returned.
Second parameter of the binomial coefficient. Parameter m must be nonnegative.
First parameter of the binomial coefficient. Parameter n must be nonnegative.
If present and nonzero, double precision is used.
|
6.4 |
Introduced |